package com.han.demo.springbootmodulelistener;

/**
 * @author hanjl
 * @Description 文件读写事件对象：事件对象中可以定义事件的细节
 * @ClassName MyFileEvent
 * @createTime 2021/11/17 17:43
 */
public class MyFileEvent implements IMyEvent {

    /**
     * 事件属性：文件大小
     */
    private int fileSize;
    /**
     * 事件属性：当前读取大小
     */
    private int readSize;

    public MyFileEvent(int fileSize, int readSize) {
        this.fileSize = fileSize;
        this.readSize = readSize;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public int getReadSize() {
        return readSize;
    }

    public void setReadSize(int readSize) {
        this.readSize = readSize;
    }
}
